package io.renren.modules.mybog.fromControoler;





import io.renren.modules.mybog.entity.SocialEntity;
import io.renren.modules.mybog.fromControoler.utiles.R;
import io.renren.modules.mybog.service.SocialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 小🌤
 * @since 2021-03-16
 */
@RestController
@RequestMapping("/bolg/social")
public class SocialControllers {
    @Autowired
    private SocialService socialService;
    @GetMapping("/list")
    public R list(){
        List<SocialEntity> list = socialService.list();
        return R.ok().data("data",list);
    }
}

